import {get, post, put, DELETE } from '../utils/request'

export function User(params) {
    return get('/api/v1/admin/products', { params })
}

export function userAdd(data) {
    return post('/api/v1/admin/products', data)
}

export function editGet(id) {
    return get('/api/v1/admin/products/' + id)
}

export function edit(id, data) {
    return put('/api/v1/admin/products/' + id, data)
}

export function Delete(id) {
    return DELETE('/api/v1/admin/products/' + id)
}
